package cn.mrlong.tools.relax

import com.intellij.openapi.ui.DialogWrapper
import javax.swing.ImageIcon
import javax.swing.JButton
import javax.swing.JComponent
import javax.swing.JLabel
import javax.swing.JPanel

class RestRemindDialogWrapper() : DialogWrapper(true) {

    var c_root: JPanel? = null
    private var c_cancel: JButton? = null
    private var r_sure: JButton? = null
    private var c_image: JLabel? = null
    private var c_txt: JLabel? = null

    init {
        title = "休息一下"
        init()
    }

    override fun createCenterPanel(): JComponent? {
        c_image?.icon = ImageIcon(
            RestRemindDialogWrapper::class.java
                .getResource("/icons/relax.jpg")
        )
        c_txt?.text = "工作再忙，也要记得休息一下。"
        return c_root
    }
}
